import request from '@/config/axios'

export interface Model {
  id: string
  jobId: string
  handlerName: string
  handlerParam: string
  cronExpression: string
  executeIndex: string
  beginTime: string
  endTime: string
  duration: string
  createTime: string
}

// 任务日志列表
export const getPage = (params: PageParam) => {
  return request.get({
    url: import.meta.env.VITE_BASE_ROLE + '/userCenter/job/jobLog/page.json',
    params
  })
}

// 任务日志详情
export const getJobLog = (id: string) => {
  return request.get({
    url: import.meta.env.VITE_BASE_ROLE + '/userCenter/job/jobLog/getById.json?id=' + id
  })
}
